package corp.edu.amadeus.core.business.service.ifc;

import corp.edu.amadeus.core.business.object.impl.ContentBO;
import corp.edu.amadeus.core.business.object.impl.FileBO;
import corp.edu.amadeus.core.business.object.impl.TextBO;

import java.util.Collection;

public interface IContentService {

	public ContentBO addContent(String desc, String type, String lang);

	public ContentBO updateContent(int contentId, String desc,
			String type, String lang) throws Exception;

	public void deleteContent(int contentId) throws Exception;

	public void addTextComponent(int contentId, TextBO text,
			float x, float y, String name) throws Exception;

	public Collection<ContentBO> getAllContents();

	public ContentBO getContent(int contentId) throws Exception;

	public void deleteTextComponent(int contentId, int textId)
		throws Exception;

	public void addFileComponent(int contentId, FileBO file,
			float x, float y) throws Exception;

	public void deleteFileComponent(int contentId, int fileId)
		throws Exception;

	public void deleteAllContents();

}